<script type="text/javascript" src="/js/jquery.rating.pack.js"></script>
<link href="/css/jquery.rating.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(function(){
	$(".rating").rating({showCancel: false, disabled:true});
	$('.ap_link').hover(
      function () {
        $(this).fadeTo('fast',0.8);
      }, 
      function () {
        $(this).fadeTo('fast',1);
      }
    );
});
</script>

<div id="content">
	<?php if (!$pager->getNbResults()): ?>
	  <p><?php echo __('No result', array(), 'sf_admin') ?></p>
	<?php else: ?>
	    <?php foreach( $pager->getResults() as $apartman ): ?>
		<?php include_partial( 'apartman_list', array( 'apartman' => $apartman ) ) ?>
	    <?php endforeach ?>
	    
	    
	    <?php if ($pager->haveToPaginate()): ?>
		<?php echo link_to('&laquo;', 'article/list?page='.$pager->getFirstPage()) ?>
		<?php echo link_to('&lt;', 'article/list?page='.$pager->getPreviousPage()) ?>
		<?php $links = $pager->getLinks(); foreach ($links as $page): ?>
		    <?php echo ($page == $pager->getPage()) ? $page : link_to($page, 'article/list?page='.$page) ?>
			<?php if ($page != $pager->getCurrentMaxLink()): ?> - <?php endif ?>
		    <?php endforeach ?>
		<?php echo link_to('&gt;', 'article/list?page='.$pager->getNextPage()) ?>
		<?php echo link_to('&raquo;', 'article/list?page='.$pager->getLastPage()) ?>
	    <?php endif ?>
		
	<?php endif ?>
</div>
